Eclipse Platform
Pre-release 3.0

Uses of Class
org.eclipse.swt.graphics.Color

Packages that use Color
org.eclipse.debug.ui.console

Provides a set of interfaces and classes for rendering and annotating text in the debug console. 

org.eclipse.jface.resource Provides support for managing resources such as SWT fonts and images. 
org.eclipse.jface.text Provides a framework for creating, manipulating, displaying and editing text documents. 
org.eclipse.jface.text.contentassist Provides a content assist add-on for an ITextViewer
org.eclipse.jface.text.source Provides a framework for connecting document regions with annotations and for displaying those annotations in combination with an ITextViewer
org.eclipse.jface.viewers Provides a framework for viewers, which are model-based content adapters for SWT widgets. 
org.eclipse.swt.custom SWT Custom widgets. 
org.eclipse.swt.graphics SWT graphics classes. 
org.eclipse.swt.ole.win32 SWT Win32 OLE implementation classes. 
org.eclipse.swt.widgets SWT widget public API classes. 
org.eclipse.team.ui.synchronize Application programming interfaces for interaction with the Eclipse Synchronize View. 
org.eclipse.ui.part Classes for the creation of workbench parts that integrate with the Eclipse Platform User Interface. 
 

Uses of Color in org.eclipse.debug.ui.console
 

Methods in org.eclipse.debug.ui.console that return Color
 Color IConsoleColorProvider.getColor(String streamIdentifer)
          Returns the color to draw output associated with the given stream.
 Color ConsoleColorProvider.getColor(String streamIdentifer)
           
 

Uses of Color in org.eclipse.jface.resource
 

Methods in org.eclipse.jface.resource that return Color
static Color JFaceColors.getBannerBackground(Display display)
          Get the Color used for banner backgrounds
static Color JFaceColors.getBannerForeground(Display display)
          Get the Color used for banner foregrounds
static Color JFaceColors.getErrorBackground(Display display)
          Get the background Color for widgets that display errors.
static Color JFaceColors.getErrorBorder(Display display)
          Get the border Color for widgets that display errors.
static Color JFaceColors.getErrorText(Display display)
          Get the defualt color to use for displaying errors.
static Color JFaceColors.getHyperlinkText(Display display)
          Get the default color to use for displaying hyperlinks.
static Color JFaceColors.getActiveHyperlinkText(Display display)
          Get the default color to use for displaying active hyperlinks.
 Color ColorRegistry.get(String symbolicName)
          Returns the color associated with the given symbolic color name, or null if no such definition exists.
 

Methods in org.eclipse.jface.resource with parameters of type Color
static void JFaceColors.setColors(Control control, Color foreground, Color background)
          Set the foreground and background colors of the control to the specified values.
 

Uses of Color in org.eclipse.jface.text
 

Methods in org.eclipse.jface.text that return Color
 Color TextAttribute.getForeground()
          Returns the attribute's foreground color.
 Color TextAttribute.getBackground()
          Returns the attribute's background color.
 

Methods in org.eclipse.jface.text with parameters of type Color
 void TextViewer.setTextColor(Color color)
           
 void TextViewer.setTextColor(Color color, int start, int length, boolean controlRedraw)
           
 void MarginPainter.setMarginRulerColor(Color color)
          Sets the color of the margin line.
 void ITextViewer.setTextColor(Color color)
          Applies the given color to this viewer's selection.
 void ITextViewer.setTextColor(Color color, int offset, int length, boolean controlRedraw)
          Applies the given color to the specified section of this viewer.
 void IInformationControl.setForegroundColor(Color foreground)
          Sets the foreground color of this information control.
 void IInformationControl.setBackgroundColor(Color background)
          Sets the background color of this information control.
 void IFindReplaceTargetExtension.setScopeHighlightColor(Color color)
          Sets the scope highlight color
 void DefaultInformationControl.setForegroundColor(Color foreground)
           
 void DefaultInformationControl.setBackgroundColor(Color background)
           
 void CursorLinePainter.setHighlightColor(Color highlightColor)
          Sets the color in which to draw the background of the cursor line.
 

Constructors in org.eclipse.jface.text with parameters of type Color
TextAttribute(Color foreground, Color background, int style)
          Creates a text attribute with the given colors and style.
TextAttribute(Color foreground)
          Creates a text attribute for the given foreground color, no background color and with the SWT normal style.
 

Uses of Color in org.eclipse.jface.text.contentassist
 

Methods in org.eclipse.jface.text.contentassist with parameters of type Color
 void ContentAssistant.setContextInformationPopupBackground(Color background)
          Sets the context information popup's background color.
 void ContentAssistant.setContextInformationPopupForeground(Color foreground)
          Sets the context information popup's foreground color.
 void ContentAssistant.setProposalSelectorBackground(Color background)
          Sets the proposal selector's background color.
 void ContentAssistant.setProposalSelectorForeground(Color foreground)
          Sets the proposal's foreground color.
 void ContentAssistant.setContextSelectorBackground(Color background)
          Sets the context selector's background color.
 void ContentAssistant.setContextSelectorForeground(Color foreground)
          Sets the context selector's foreground color.
 

Uses of Color in org.eclipse.jface.text.source
 

Methods in org.eclipse.jface.text.source that return Color
protected  Color LineNumberRulerColumn.getForeground()
          Returns the foreground color being used to print the line numbers.
protected  Color LineNumberRulerColumn.getBackground(Display display)
          Returns the System background color for list widgets.
 Color ISharedTextColors.getColor(RGB rgb)
          Returns the color object for the value represented by the given RGB object.
protected  Color ChangeRulerColumn.getBackground(Display display)
          Returns the System background color for list widgets.
 

Methods in org.eclipse.jface.text.source with parameters of type Color
 void OverviewRuler.setAnnotationTypeColor(Object annotationType, Color color)
           
 void MatchingCharacterPainter.setColor(Color color)
          Sets the color in which to highlight the match character.
 void LineNumberRulerColumn.setForeground(Color foreground)
          Sets the foreground color of this column.
 void LineNumberRulerColumn.setBackground(Color background)
          Sets the background color of this column.
 void LineNumberChangeRulerColumn.setAddedColor(Color addedColor)
          Sets the background color for added lines.
 void LineNumberChangeRulerColumn.setChangedColor(Color changedColor)
          Sets the background color for changed lines.
 void LineNumberChangeRulerColumn.setDeletedColor(Color deletedColor)
          Sets the color for the deleted lines indicator.
 void IOverviewRuler.setAnnotationTypeColor(Object annotationType, Color color)
          Sets the color for the given annotation type in this overview ruler.
 void IChangeRulerColumn.setBackground(Color addedColor)
          Sets the background color for normal lines.
 void IChangeRulerColumn.setAddedColor(Color addedColor)
          Sets the background color for added lines.
 void IChangeRulerColumn.setChangedColor(Color changedColor)
          Sets the background color for changed lines.
 void IChangeRulerColumn.setDeletedColor(Color deletedColor)
          Sets the color for the deleted lines indicator.
 void ChangeRulerColumn.setBackground(Color background)
           
 void ChangeRulerColumn.setAddedColor(Color addedColor)
           
 void ChangeRulerColumn.setChangedColor(Color changedColor)
           
 void ChangeRulerColumn.setDeletedColor(Color deletedColor)
           
 void AnnotationPainter.setAnnotationTypeColor(Object annotationType, Color color)
          Sets the color in which the squiggly for the given annotation type should be drawn.
 

Uses of Color in org.eclipse.jface.viewers
 

Methods in org.eclipse.jface.viewers that return Color
 Color IColorProvider.getForeground(Object element)
          Provides a foreground color for the given element.
 Color IColorProvider.getBackground(Object element)
          Provides a background color for the given element.
 

Uses of Color in org.eclipse.swt.custom
 

Fields in org.eclipse.swt.custom declared as Color
 Color StyleRange.foreground
           
 Color StyleRange.background
           
 Color LineBackgroundEvent.lineBackground
           
 

Methods in org.eclipse.swt.custom that return Color
 Color TableTreeItem.getBackground()
          Returns the receiver's background color.
 Color TableTreeItem.getForeground()
          Returns the foreground color that the receiver will use to draw.
 Color TableTree.getBackground()
           
 Color TableTree.getForeground()
           
 Color StyledText.getBackground()
           
 Color StyledText.getForeground()
           
 Color StyledText.getLineBackground(int index)
          Returns the background color of the line at the given index.
 Color StyledText.getSelectionBackground()
          Returns the receiver's selection background color.
 Color StyledText.getSelectionForeground()
          Returns the receiver's selection foreground color.
 

Methods in org.eclipse.swt.custom with parameters of type Color
 void TableTreeItem.setBackground(Color color)
          Sets the receiver's background color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableTreeItem.setForeground(Color color)
          Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableTree.setBackground(Color color)
           
 void TableTree.setForeground(Color color)
           
 void StyledText.setBackground(Color color)
           
 void StyledText.setForeground(Color color)
           
 void StyledText.setLineBackground(int startLine, int lineCount, Color background)
          Sets the background color of the specified lines.
 void StyledText.setSelectionBackground(Color color)
          Sets the receiver's selection background color to the color specified by the argument, or to the default system color for the control if the argument is null.
 void StyledText.setSelectionForeground(Color color)
          Sets the receiver's selection foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.
 void SashForm.setBackground(Color color)
           
 void SashForm.setForeground(Color color)
           
 void CTabFolder2.setBackground(Color color)
           
 void CTabFolder2.setBorderColor(Color color)
          Deprecated.  
 void CTabFolder2.setForeground(Color color)
           
 void CTabFolder2.setSelectionBackground(Color color)
           
 void CTabFolder2.setSelectionBackground(Color[] colors, int[] percents)
          Specify a gradient of colours to be draw in the background of the selected tab.
 void CTabFolder2.setSelectionForeground(Color color)
          Set the foreground color of the selected tab.
 void CTabFolder.setBackground(Color color)
           
 void CTabFolder.setSelectionBackground(Color[] colors, int[] percents)
          Specify a gradient of colours to be draw in the background of the selected tab.
 void CTabFolder.setSelectionForeground(Color color)
          Set the foreground color of the selected tab.
 void CLabel.setBackground(Color color)
           
 void CLabel.setBackground(Color[] colors, int[] percents)
          Specify a gradient of colours to be drawn in the background of the CLabel.
 void CCombo.setBackground(Color color)
           
 void CCombo.setForeground(Color color)
           
 

Constructors in org.eclipse.swt.custom with parameters of type Color
StyleRange(int start, int length, Color foreground, Color background)
          Create a new style range.
StyleRange(int start, int length, Color foreground, Color background, int fontStyle)
          Create a new style range.
 

Uses of Color in org.eclipse.swt.graphics
 

Methods in org.eclipse.swt.graphics that return Color
 Color Image.getBackground()
          Returns the color to which to map the transparent pixel, or null if the receiver has no transparent pixel.
 Color GC.getBackground()
          Returns the background color.
 Color GC.getForeground()
          Returns the receiver's foreground color.
 Color Device.getSystemColor(int id)
          Returns the matching standard color for the given constant, which should be one of the color constants specified in class SWT.
static Color Color.win32_new(Device device, int handle)
          Invokes platform specific functionality to allocate a new color.
 

Methods in org.eclipse.swt.graphics with parameters of type Color
 void Image.setBackground(Color color)
          Sets the color to which to map the transparent pixel.
 void GC.setBackground(Color color)
          Sets the background color.
 void GC.setForeground(Color color)
          Sets the foreground color.
 

Uses of Color in org.eclipse.swt.ole.win32
 

Methods in org.eclipse.swt.ole.win32 that return Color
 Color OleControlSite.getBackground()
           
 Color OleControlSite.getForeground()
           
 

Methods in org.eclipse.swt.ole.win32 with parameters of type Color
 void OleControlSite.setBackground(Color color)
           
 void OleControlSite.setForeground(Color color)
           
 

Uses of Color in org.eclipse.swt.widgets
 

Methods in org.eclipse.swt.widgets that return Color
 Color TreeItem.getBackground()
          Returns the receiver's background color.
 Color TreeItem.getForeground()
          Returns the foreground color that the receiver will use to draw.
 Color TableItem.getBackground()
          Returns the receiver's background color.
 Color TableItem.getBackground(int index)
          Returns the background color at the given column index in the receiver.
 Color TableItem.getForeground()
          Returns the foreground color that the receiver will use to draw.
 Color TableItem.getForeground(int index)
          Returns the foreground color at the given column index in the receiver.
 Color Display.getSystemColor(int id)
          Returns the matching standard color for the given constant, which should be one of the color constants specified in class SWT.
 Color Control.getBackground()
          Returns the receiver's background color.
 Color Control.getForeground()
          Returns the foreground color that the receiver will use to draw.
 

Methods in org.eclipse.swt.widgets with parameters of type Color
 void TreeItem.setBackground(Color color)
          Sets the receiver's background color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TreeItem.setForeground(Color color)
          Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableItem.setBackground(Color color)
          Sets the receiver's background color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableItem.setBackground(int index, Color color)
          Sets the background color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableItem.setForeground(Color color)
          Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the item if the argument is null.
 void TableItem.setForeground(int index, Color color)
          Sets the foreground color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.
 void Control.setBackground(Color color)
          Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.
 void Control.setForeground(Color color)
          Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.
 

Uses of Color in org.eclipse.team.ui.synchronize
 

Methods in org.eclipse.team.ui.synchronize that return Color
 Color TeamSubscriberParticipantLabelProvider.getForeground(Object element)
           
 Color TeamSubscriberParticipantLabelProvider.getBackground(Object element)
           
 

Uses of Color in org.eclipse.ui.part
 

Fields in org.eclipse.ui.part declared as Color
 Color MultiEditor.Gradient.fgColor
           
 Color[] MultiEditor.Gradient.bgColors
           
 


Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.